package mutsumimod.cards.stand;

import com.megacrit.cardcrawl.actions.common.GainEnergyAction;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.monsters.AbstractMonster;
import mutsumimod.cards.BaseCard;
import mutsumimod.character.Mutsumi;
import mutsumimod.powers.BreakPower;
import mutsumimod.util.CardStats;
import mutsumimod.util.tags.CustomTags;

public class BeforePlay extends BaseCard {
    public static final String ID = makeID(BeforePlay.class.getSimpleName());
    public static final CardStats info = new CardStats(
            Mutsumi.Meta.CARD_COLOR,
            CardType.SKILL,
            CardRarity.UNCOMMON,
            CardTarget.SELF,
            0
    );

    public BeforePlay() {
        super(ID, info);
        setAttr(0,0,2);
        setAttrUpg(0,0,1);
        exhaust = true;
        standTag=5;
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        drawCard();
        stand(standTag,m);
    }

    @Override
    public void standUse5(AbstractPlayer p, AbstractMonster m) {
        addToTop(new GainEnergyAction(2));
    }

    @Override
    public AbstractCard makeCopy() {
        return new BeforePlay();
    }

    @Override
    public void updateDescription() {
        if(upgraded){
            this.rawDescription=cardStrings.UPGRADE_DESCRIPTION;
        }else{
            this.rawDescription=cardStrings.DESCRIPTION;
        }
        initializeDescription();
    }
}
